#include "arttopbarwm.h"
#include "ui_arttopbarwm.h"

#include <mouseeater.h>

ArtTopBarWM::ArtTopBarWM(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ArtTopBarWM)
{
    ui->setupUi(this);

    new MouseEater([](QMouseEvent*){
        qApp->quit();
        return true;
    }, ui->close);
}

ArtTopBarWM::~ArtTopBarWM()
{
    delete ui;
}
